Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.smart.folder.contentviews--contentViews

This contribution is part of XML component org.nuxeo.ecm.platform.smart.folder.contentviews inside nuxeo-platform-smart-folder-jsf-5.8.jar

Documentation

Content view definition for the smart folder results.

It is bound to the current smart folder properties for the query part, the sort information, and the selected layout columns retrieval.

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="nxql_incremental_smart_folder">
    
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern escapeParameters="false" quoteParameters="false">
              SELECT * FROM Document WHERE (?) AND ecm:mixinType !=
              'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND
              ecm:currentLifeCycleState != 'deleted'
            </pattern>
            <parameter>#{currentDocument.sf.queryPart}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
            <pageSizeBinding>#{currentDocument.cvd.pageSize}</pageSizeBinding>
            <sortInfosBinding>#{currentDocument.cvd.sortInfos}</sortInfosBinding>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <reset>
            <event>documentChanged</event>
          </reset>
          <cacheKey>#{currentDocument.id}</cacheKey>
          <cacheSize>10</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="search_listing_ajax" showCSVExport="true" title="document_listing" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns" translateTitle="true"/>
          </resultLayouts>
          <resultColumns>
            #{currentDocument.cvd.selectedLayoutColumns}
          </resultColumns>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <documentation>
      Content view definition for the smart folder results.

      It is bound to the current smart folder properties for the query part, the
      sort information, and the selected layout columns retrieval.
    </documentation>

    <contentView name="nxql_incremental_smart_folder">

      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern escapeParameters="false" quoteParameters="false">
          SELECT * FROM Document WHERE (?) AND ecm:mixinType !=
          'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND
          ecm:currentLifeCycleState != 'deleted'
        </pattern>
        <parameter>#{currentDocument.sf.queryPart}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
        <pageSizeBinding>#{currentDocument.cvd.pageSize}</pageSizeBinding>
        <sortInfosBinding>#{currentDocument.cvd.sortInfos}</sortInfosBinding>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <reset>
        <event>documentChanged</event>
      </reset>
      <cacheKey>#{currentDocument.id}</cacheKey>
      <cacheSize>10</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="search_listing_ajax" showCSVExport="true" title="document_listing" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns" translateTitle="true"/>
      </resultLayouts>
      <resultColumns>
        #{currentDocument.cvd.selectedLayoutColumns}
      </resultColumns>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>

  </extension>